<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert Resource</title>
<link rel="stylesheet" type="text/css" href="resources/theme/jquery.datepick.css"/>
<link rel="stylesheet" type="text/css" href="resources/theme/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="resources/theme/DT_bootstrap.css"/>

<style>
.error {
	color: #ff0000;
}
.errorblock{
	color: #000;
	background-color: #ffEEEE;
	border: 3px solid #ff0000;
	padding:8px;
	margin:16px;
}
</style>
</head>
<body>
<div align="center">
		<form:form method="POST" action = "insert.htm" commandName="InsertResourceCommand" >
			
			<form:errors path="*" cssClass="errorblock" element="div"></form:errors>
			
				<table cellpadding="0" cellspacing="0" border="0" class="table table-bordered" align="center" width="600">
					
					<tr>
				          <th colspan="2">Insert Resource </th>
				    </tr>
				    <tr>
				           <td>Employee First Name:</td>
				           <td><form:input path="empfirstname" /></td>
				    </tr>
				    <tr>
				           <td>Employee Last Name:</td>
				           <td><form:input path="emplastname" /></td>
				    </tr>
				    <tr>
				    		<td>Signum ID</td>
				    		<td><form:input path="signum"/></td>
				    </tr>
				    <tr>
				    		<td>Employee ID</td>
				    		<td><form:input path="empID"/></td>
				    </tr>
				    
				    <tr>
				    		<td>Career Start Date</td>
				    		<td><form:input path="yearsOfExp"/></td>
				    </tr>
				    <tr>
				    		<td>Ericsson Experience</td>
				    		<td><form:input path="ericExp"/></td>
				    </tr>
				    <tr>
				    		<td>Line Manager</td>
				    		<td><form:input path="lineManager"/></td>
				    </tr>
				    <tr>
				    		<td>Phone Number</td>
				    		<td><form:input path="phNum"/></td>
				    </tr>
				    <tr>
				    		<td>Email ID</td>
				    		<td><form:input path="emailID"/></td>
				    </tr>
				    <tr>
				    		<td>Job Stage</td>
				    		<td><form:input path="jobStage"/></td>
				    </tr>
				    
				    <tr>
				    		<td>Date of Join</td>
				    		<td><form:input path="dateOfjoin"/></td>
				    </tr>
				    

				    <tr>
				            <td colspan="2" align="center"><input type="submit" value="Submit" /></td>
				    </tr>
				</table>
		</form:form>
	</div>	
</body>
</html>